package com.huiztech.maystall.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;

public class WriteOrderActivity extends BaseActivity{

    private RelativeLayout writeDetailLayout,payinfoLayout;
    private Button backBtn;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_write_order);
        
        backBtn = (Button) findViewById(R.id.write_order_back_btn);
        backBtn.setOnClickListener(new OnClickListener() {
            
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        
        writeDetailLayout = (RelativeLayout) findViewById(R.id.write_order_consignee_layout);
        writeDetailLayout.setOnClickListener(new OnClickListener() {
            
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WriteOrderActivity.this, WriteDetailActivity.class);
                startActivity(intent);
            }
        });
        
        payinfoLayout = (RelativeLayout) findViewById(R.id.write_order_delivery_layout);
        payinfoLayout.setOnClickListener(new OnClickListener() {
            
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WriteOrderActivity.this, PayInfoActivity.class);
                startActivity(intent);
                
            }
        });
    }
}
